import { sync } from 'command-exists'

const getPackageManager = () => {
  if (sync('pnpm')) {
    return 'pnpm'
  }

  if (sync('yarn')) {
    return 'yarn'
  }
  return 'npm'
}

export default getPackageManager